#
def statistics_char(input_string):

    char = 0
    number = 0
    space = 0
    other = 0

    for i in string:
        if i.isalpha():
            char += 1
        elif i.isdigit():
            number += 1
        elif i.isspace():
            space += 1
        else:
            other += 1
    print(f"英文字符有{char}个,数字有{number}个,空格有{space}个,其他字符有{other}个")
    return 

string = input("请输入字符串:")
result = statistics_char(string)
print(result)